from random import shuffle

from event import event


class Status(object):
    def __init__(self):
        self.paused = False
        self.current_phase = None
        self.event = event
        self.doing = False
        self.combat_field_cards: dict[int:list] = {i: [] for i in range(7)}
        self.card_pile = []
        self.discard_card_pile = []
        self.cards_index = {}

    def wash_card_pile(self):
        self.card_pile.extend(status.discard_card_pile)
        self.discard_card_pile.clear()
        shuffle(status.card_pile)

status = Status()
